import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {OverviewComponent} from './overview/overview.component';
import {EquipMgmtComponent} from './equip-mgmt/equip-mgmt.component';
import {EquipMainDataMgmtComponent} from './equip-main-data-mgmt/equip-main-data-mgmt.component';
import {SubstationComponent} from './components/substation/substation.component';
import {SubstationDetailsComponent} from './components/substation-details/substation-details.component';
import {InspectionMgmtComponent} from './inspection/inspection-mgmt';
import {RecordComponent} from './inspection/components/record/record.component';
import {ProductionReviewComponent} from './inspection/components/production-review/production-review.component';
import {InspectionComponent} from './inspection';
import {OneKeyConfigComponent} from './inspection/one-key-configuration';
import {FaultDetailComponent} from './overview/components/fault-detail/fault-detail';
import {PowerDetailComponent} from './overview/components/power-detail/power-detail';
import {DataMgmtComponent} from './system-mgmt/data-mgmt/data-mgmt.component';
import {LogMgmtComponent} from './system-mgmt/log-mgmt/log-mgmt.component';
import {DataAnalysisComponent} from './data-analysis/data-analysis.component';
import {NetworkStatusComponent} from './chart-detection/network-status/index';



const routes: Routes = [
  {
    path: '',
    redirectTo: 'overview',
    pathMatch: 'full'
  },
  {
    path: 'overview',
    component: OverviewComponent
  },
  {
    path: 'overview/faultDetail',
    component: FaultDetailComponent
  },
  {
    path: 'overview/powerDetail',
    component: PowerDetailComponent
  },
  {
    path: 'equip/mgmt',
    component: EquipMgmtComponent
  },
  {
    path: 'equipMainData/mgmt',
    component: EquipMainDataMgmtComponent
  },
  {
    path: 'substation',
    component: SubstationComponent
  },
  {
    path: 'substationDetails',
    component: SubstationDetailsComponent
  },
  {
    path: 'inspection',
    component: InspectionComponent
  },
  {
    path: 'inspection/mgmt',
    component: InspectionMgmtComponent
  },
  {
    path: 'record',
    component: RecordComponent
  },
  {
    path: 'productionReview',
    component: ProductionReviewComponent
  },
  {
    path: 'inspection/oneKey',
    component: OneKeyConfigComponent
  },
  {
    path: 'system/dataMgmt',
    component: DataMgmtComponent
  },
  {
    path: 'system/logMgmt',
    component: LogMgmtComponent
  },
  {
    path: 'analysis/data',
    component: DataAnalysisComponent
  },
  {
    path: 'chartDetection/networkStatus',
    component: NetworkStatusComponent
  }

];

@NgModule({
  imports: [RouterModule.forRoot(routes, {useHash: true})],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
